package lab02.text09;

/**java 中都有一个父类
 * Created by dell on 2017/10/19.
 */
public class Student {

    //属性：学号、班号、姓名、性别、年龄
    String sno;
    String classNo;
    String name;
    int age;
    int gender;


    //行为：获得学号、班号、姓名、性别、年龄

    public String getSno() {
        return sno;
    }

    public String getClassNo() {
        return classNo;
    }

    public String getName() {
        return name;
    }

    public int getGender() {
        return gender;
    }

    public int getAge() {
        return age;
    }
    public String toString(){
        return name;
    }


    //构造函数
    Student(){}
}
